package com.example.health_hjk;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;

import androidx.appcompat.app.AppCompatActivity;

public class exercise_food extends AppCompatActivity {
    ImageView ex_back;
    Button bt_let;
    @Override
    protected void onCreate(Bundle savedInstanceState) {

        super.onCreate(savedInstanceState);
        setContentView(R.layout.exercise_food);

        ex_back = findViewById(R.id.ex_back);
        bt_let = findViewById(R.id.bt_let);
        //设置返回
        ex_back.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });

        bt_let.setOnClickListener(new View.OnClickListener() {

            public void onClick(View v) {
                // 给bt_let添加点击响应事件
                Intent intent =new Intent(exercise_food.this,exercise_food1.class);
                                //启动
                startActivity(intent);
            }

        });
    }
}